<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link
	href="//cdn.bootcss.com/font-awesome/4.3.0/css/font-awesome.min.css"
	rel="stylesheet">
<link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css"
	rel="stylesheet">
</head>
<body>
	<!--总容器 -->
	<div class="container bs-docs-container" style="width: 100%;">
		<div class="row">
			<div class="col-md-5">
				<div class="panel panel-success">
					<div class="panel-heading">添加分类</div>
					<div class="container-fluid">
						<form class="navbar-form navbar-left" role="search" action="<@url url='/cat/save'/>" method="post">
							<table>
				    		<tr>
				    			<td>分类名称:</td>
				    			<td><input type="text" name="cat_name" class="form-control" placeholder="cat_name" /></td>
				    		</tr>
				    		<tr>
				    			<td>分类名称:</td>
				    			<td>
				    			 <select name="parent_id">
				    			 	<option value="0">顶级</option>
					    			 <#list cats as cat>
					    			    <option value="${cat.cat_id}">${cat.cat_name}</option>
					    			 </#list>
				    			 </select>
				    			</td>
				    		</tr>
							<tr>
				    			<td>排序:</td>
				    			<td>
				    			<input  name="cat_order" />	
				    			</td>
				    		</tr>
						</form>
							<button type="submit" class="btn btn-info">提交</button>
					</div>
				</div>
			</div>
		</div>
	</div>
	</div>
</body>
</html>